/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.agent.service.salesman.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.shop.cereshop.agent.dao.salesman.AgentSalesmanPackageDAO;
import com.shop.cereshop.agent.service.salesman.AgentSalesmanPackageService;
import com.shop.cereshop.commons.domain.salesman.CereAgentSalesmanPackage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 业务员套餐Service实现
 */
@Slf4j
@Service
public class AgentSalesmanPackageServiceImpl extends
    ServiceImpl<AgentSalesmanPackageDAO, CereAgentSalesmanPackage> implements AgentSalesmanPackageService {

    @Autowired
    private AgentSalesmanPackageDAO agentSalesmanPackageDAO;
    @Override
    public List<CereAgentSalesmanPackage> getPackages() {
        //创建分页条件
        PageHelper.startPage(1, 2);
        return agentSalesmanPackageDAO.getPackages();
    }
}
